#
# Be sure to run `pod lib lint HCInternalModule.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'HCInternalModule'
  s.version          = '0.6.9'
  s.summary          = 'A short description of HCInternalModule.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://gitee.com/jiangqianqiu/jwk-web-view.git'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { '蒋千秋' => 'm17710755529@163.com' }
  s.source           = { :git => 'https://gitee.com/jiangqianqiu/jwk-web-view.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
  s.pod_target_xcconfig = {
      'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
    }
  s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
  s.ios.deployment_target = '9.0'

  ##########--Permission---#########
  s.subspec 'Permission' do |permission|
  permission.ios.deployment_target = '9.0'
  permission.dependency 'LBXPermission/Base'

      ##########--Base---#########
       permission.subspec 'Base' do |base|
       base.ios.deployment_target = '9.0'
       base.source_files = 'HCInternalModule/Classes/Permission/Base/*'
       base.dependency 'LBXPermission/Base'
       end

      ##########--Photo---#########
       permission.subspec 'Photo' do |ph|
       ph.ios.deployment_target = '9.0'
       ph.source_files = 'HCInternalModule/Classes/Permission/Photo/*'
       ph.dependency 'HCInternalModule/Permission/Base'
       ph.dependency 'LBXPermission/Camera'
       ph.dependency 'LBXPermission/Photo'
       ph.dependency 'TZImagePickerController'
       ph.dependency 'SPAlertController'
       end
       
       ##########--Photo---#########
        permission.subspec 'Scan' do |scan|
        scan.ios.deployment_target = '9.0'
#        scan.resource = ['HCInternalModule/Assets/Scan/*.xib']

        scan.resource_bundles = {
           'SWQRCode' => ['HCInternalModule/Assets/Scan/*']
         }

            scan.subspec 'libqrencode' do |libdecode|
            libdecode.ios.deployment_target = '9.0'
            libdecode.source_files = 'HCInternalModule/Classes/Permission/Scan/libqrencode/*'
            libdecode.dependency 'HCInternalModule/Permission/Photo'
            
            end
            scan.subspec 'QRCode' do |qrcode|
            qrcode.ios.deployment_target = '9.0'
            qrcode.source_files = 'HCInternalModule/Classes/Permission/Scan/QRCode/*'
            qrcode.dependency 'HCInternalModule/Permission/Scan/libqrencode'

            end

        end

       
       ##########--Location---#########
       permission.subspec 'Location' do |location|
       location.ios.deployment_target = '9.0'
       location.source_files = 'HCInternalModule/Classes/Permission/Location/*'
       location.dependency 'HCInternalModule/Permission/Base'
       location.dependency 'LBXPermission/Location'
       end

       
       ##########--Recorder---#########
       permission.subspec 'Recorder' do |recorder|
       recorder.ios.deployment_target = '9.0'
       recorder.source_files = 'HCInternalModule/Classes/Permission/Recorder/*'
       recorder.dependency 'HCInternalModule/Permission/Base'
       recorder.dependency 'LBXPermission/Microphone'
       recorder.vendored_frameworks = ['HCInternalModule/Classes/Permission/Recorder/*.framework']
       end
       
  end

  
  ##########--IGListKitWaterFallLayoutSC---#########
  s.subspec 'WebView' do |webView|
  webView.ios.deployment_target = '9.0'

      ##########--Base---#########
       webView.subspec 'Base' do |base|
       base.ios.deployment_target = '9.0'
       
       base.subspec 'JSAPI' do |jsapi|
       jsapi.ios.deployment_target = '9.0'
       jsapi.source_files = 'HCInternalModule/Classes/WebView/Base/JSAPI/*'
       end
       
       base.subspec 'WKWebViewVC' do |webView|
       webView.ios.deployment_target = '9.0'
       webView.source_files = 'HCInternalModule/Classes/WebView/Base/WKWebViewVC/*'
       webView.dependency 'HCInternalModule/WebView/Base/JSAPI'
       webView.dependency 'HCBaseModule/Base'
       webView.dependency 'HCBaseModule/Categary'
       webView.dependency 'HCBaseModule/View'
       webView.dependency 'HCBaseModule/Macro'
       webView.dependency 'HCGitModule/ProgressHub'
       webView.dependency 'AFNetworking'
       webView.dependency 'Masonry'
       webView.dependency 'dsBridge'
       end

       end
  
      ##########--JSOCBridge---#########
      webView.subspec 'JSOCBridge' do |dBridge|
      dBridge.dependency 'HCBaseModule/Base'
      

      dBridge.ios.deployment_target = '9.0'
      dBridge.source_files = 'HCInternalModule/Classes/WebView/JSOCBridge/*'
      dBridge.dependency 'HCBaseModule/Macro'
      dBridge.dependency 'HCBaseModule/Categary'
      dBridge.dependency 'HCInternalModule/Permission/Photo'
      dBridge.dependency 'HCInternalModule/Permission/Location'
      dBridge.dependency 'HCInternalModule/Permission/Scan'
      dBridge.dependency 'HCInternalModule/WebView/Base'
      dBridge.dependency 'HCInternalModule/Permission/Recorder'
      dBridge.dependency 'HCGitModule/NetWork'
      dBridge.dependency 'HCGitModule/ProgressHub'
      dBridge.dependency 'HCGitModule/LevelDB'
      dBridge.dependency 'SDWebImage'
      end


  end


  
  # s.resource_bundles = {
  #   'HCInternalModule' => ['HCInternalModule/Assets/*.png']
  # }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
end
